Skip to content

Comments

[IOTDB-17191] CLI: add space after error prefix in three messages#17192

Merged
HTHou merged 2 commits intoapache:masterfrom
miantalha45:cli-missing-space-fix
Feb 24, 2026
Merged

[IOTDB-17191] CLI: add space after error prefix in three messages#17192
HTHou merged 2 commits intoapache:masterfrom
miantalha45:cli-missing-space-fix

Conversation

@miantalha45
Copy link
Contributor

What's changed

Adds the missing separator after IOTDB_ERROR_PREFIX ("Error") in three CLI error messages so they display as "Error: ..." instead of "Error...".

Changes

  • ArgsErrorException (init): Error + : Input params error because + message
  • Exception (init): Error + : Exit cli with error + message
  • SQLException (executeSql): Error + : Can't execute sql because + message

Fixes #17191

- ArgsErrorException: 'Error' + ': Input params error because '
- Exception on init: 'Error' + ': Exit cli with error '
- SQLException in executeSql: 'Error' + ': Can't execute sql because '

Fixes missing space after IOTDB_ERROR_PREFIX so messages display as
'Error: ...' instead of 'Error...'.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes CLI error output formatting by adding a ": " separator after IOTDB_ERROR_PREFIX so affected messages render as Error: ... instead of Error..., addressing #17191.

Changes:

  • Add ": " after IOTDB_ERROR_PREFIX for argument parsing errors.
  • Add ": " after IOTDB_ERROR_PREFIX for generic CLI exit errors during startup.
  • Add ": " after IOTDB_ERROR_PREFIX for SQL execution errors in executeSql().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@miantalha45
Copy link
Contributor Author

@HTHou Any update on this PR?

@HTHou HTHou merged commit 9041e60 into apache:master Feb 24, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] CLI: missing space after error prefix in three error messages

3 participants